using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using ShopPowerTemplate.IoC;
using ShopPowerTemplate.Entities;
using ShopPowerTemplate.Services.Tests.Properties;

namespace ShopPowerTemplate.Services.Tests
{
    public partial class OptionServiceUtil
    {
	
		static internal IOptionService CreateOptionService()
        {
            IOptionService target = IoCFactory.Resolve<IOptionService>();
            return target;
        }
				#region Option Test
 
        

		public static Option CreateOption()
        {
            Option result = GetOption();
            IOptionService service = CreateOptionService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
		
		public static Option CreateOptionFull()
        {
            Option result = GetOptionFull();
            IOptionService service = CreateOptionService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
				
        public static Option GetOption()
        {
            Option result = new Option();
			
            result.Name = Guid.NewGuid().ToString();

            result.Description = Guid.NewGuid().ToString();

        	result.OptionType = OptionTypeServiceUtil.CreateOptionType(); 
 
            return result;
            
        }
		
        public static Option GetOptionFull()
        {
            Option result = GetOption();
             
            return result;
            
        }
		
		#endregion Option Test
	

	}
}
